package com.zhang.third.day02;

import com.zhang.third.utils.ClickEventSource;
import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment;

/**
 * @title: 自定义数据源测试
 * @author: zhang
 * @date: 2022/4/2 12:20
 */
public class Example1 {
    public static void main(String[] args) throws Exception {
        StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();
        env.setParallelism(1);

        env
                .addSource(new ClickEventSource())
                .print();

        env.execute();
    }
}
